import request from '@/utils/request'

// APP渠道列表-分页版本
export function queryPageChannelAppList(data) {
  return request({
    url: `/app/config/list/channel?page=${data.pageNum}`,
    method: 'post',
    data: data
  })
}

// APP添加渠道
export function addChannelApp(data) {
  return request({
    url: '/app/config/add/channel',
    method: 'post',
    data: data
  })
}

// APP修改渠道
export function editChannelApp(data) {
  return request({
    url: '/app/config/edit/channel',
    method: 'post',
    data: data
  })
}

// APP修改渠道状态
export function updateChannelSwitch(data) {
  return request({
    url: '/app/config/switch/channel',
    method: 'post',
    data: data
  })
}

// APP查渠道详情
export function queryChannelAppDetail(data) {
  return request({
    url: '/app/config/info/channel',
    method: 'post',
    data: data
  })
}
